/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package MessageHandler;

/**
 *
 * @author maniksin
 */
public enum message_type {
    ACKNOWLEDGE_RECEIPT(0),
    ACKNOWLEDGE_ACTION(1),
    ACKNOWLEDGE_NONE(2);
    
    public int ack_type;
    message_type(int type) {
        ack_type = type;
    }
    
    public static message_type find_enum(int type) {
        switch(type) {
            case 0: return ACKNOWLEDGE_RECEIPT;
            case 1: return ACKNOWLEDGE_ACTION;
            case 2: return ACKNOWLEDGE_NONE;
            default: return null;
        }
    }
}
